﻿@model ProjectManager.Models.LogOnModel
           

@if(Request.IsAuthenticated) 
{
    <text>Welcome <b>@Context.User.Identity.Name</b>!
    [ @Html.ActionLink("Log Off", "LogOff", "Account") ]</text>
}

else 
{
    @*@using (Html.BeginForm()) 
    {*@
        <form action="/Account/LogOn" method="post">  
            User: @Html.TextBoxFor(m => m.UserName)
            Password: @Html.PasswordFor(m => m.Password)
            <input type="submit" value="Log On" />
        </form>
    @*}*@
}